<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Example</title>
</head>

<body>
  <script>
  document.writeln("<pre>");
  document.writeln("characterSet: " + document.characterSet);
  document.writeln("charset: " + document.charset);
  document.writeln("compatMode: " + document.compatMode);
  document.writeln("defaultCharset: " + document.defaultCharset);
  document.writeln("dir: " + document.dir);
  document.writeln("domain: " + document.domain);
  document.writeln("lastModified: " + document.lastModified);
  document.writeln("referrer: " + document.referrer);
  document.writeln("title: " + document.title);
  document.writeln("</pre>");
  </script>
</body>

</html>
